//调用接口配置文件
import { request } from 'config/request'

// 列表
export async function getList (params) {
  return request({
    url: 'admin/seckillActivity/list',
    method: 'POST',
    data: params
  })
}

// 修改
export async function update (params) {
  return request({
    url: 'admin/seckillActivity/update',
    method: 'POST',
    data: params
  })
}

// 删除
export async function deleted (params) {
  return request({
    url: 'admin/seckillActivity/deleted',
    method: 'POST',
    data: params
  })
}

// 新增
export async function create (params) {
  return request({
    url: 'admin/seckillActivity/create',
    method: 'POST',
    data: params
  })
}

// 活动上下架(罗布)
export async function updatePublished (params) {
  return request({
    url: 'admin/seckillActivity/updatePublished',
    method: 'POST',
    data: params
  })
}
